package com.htjx.mall.commons.jackson;

import java.text.SimpleDateFormat;

import org.codehaus.jackson.map.ObjectMapper;

public class JsonObjectMapper extends ObjectMapper {

	private JsonObjectMapper() {
		super();
		// 空对象序列化
		getSerializerProvider().setNullValueSerializer(new NullSerializer());
		// 设置日期转换yyyy-MM-dd HH:mm:ss
		setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
	}

}
